<?php $this->load->view("common/page_header");?>
	<?php $this->load->view("common/top_banner");?>
	<?php $this->load->view("common/header");?>
	<div id="body_main">
		<?php $this->load->view('common/user_top');?>
		<div class="top_border">
			<div class="arrow_up" style="left:90px"></div>
		</div>
		
		<div id="body_content" class="user_info">
			<?php $this->load->view("common/user_info_table");?>
			
			<div class="margin_top15">
				<?php $this->load->view("common/user_info_navigator");?>
				<div class="user_info_content">
					<div class="head">
						<ul class="suborder">
							<?php if (!empty($experts)) {?>
							<?php foreach($experts as $expert_top) {?>
								<li class="<?php if ($current_expert_id == $expert_top['id']) {?>current<?php }?>"><a href="<?php echo site_url("user/experts?user_id=" . $user_info['id']. "&expert_id=" . $expert_top['id']);?>"><?php echo la_substr($expert_top['title'], 18);?></a></li>
								
							<?php }?>
							<?php }?>
							<?php if($expert_count < 4 && $is_author) {?><li class="action"><a href="/expert/create">+添加注册</a></li><?php }?>
						</ul>
						<div class="arrow_up" style="left:56px;">						
							<em>◆</em>
							<span>◆</span>
						</div>
						<div class="clear"></div>
					</div>
					<?php if (!empty($expert)) {?>
					<?php if ($is_author) {?>
					<div class="right" style="margin-top:-20px;margin-right:25px">
						<a href="<?php echo site_url("expert/edit/" . $expert['id']);?>" class="underline">>修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a onclick='if(!confirm("你确定要删除这个行家?")) return false;' href="<?php echo site_url("expert/delete/" . $expert['id']);?>" class="underline">-删除</a>
					</div>
					<?php }?>
					<div class="user_skill_intro">
						<div class="item">
							<span class="bold">服务地区：</span>
							<span><?php echo (!empty($expert['province']) ? $expert['province'] : "") . (!empty($expert['city']) && $expert['city'] != '辖区' && $expert['city'] != '县' ? $expert['city'] : '') . (!empty($expert['area']) ? $expert['area'] : "");?></span>
						</div>
						<div class="item">
							<span class="bold">专业验证：</span>
							<span>高级心理咨询师</span>
						</div>
						<div class="item">
							<span class="bold">服务标价：</span>
							<span><?php echo $expert['price'];?></span>
						</div>
						<div class="item">
							<div class="bold">专业描述：</div>
							<div class="margin_top5">
								<?php echo nl2br($expert['description']);?>
							</div>
						</div>
						<div class="item">
							<div class="bold">主要成就：</div>
							<div class="margin_top5"><?php echo nl2br($expert['introduction']);?></div>
						</div>
						
					</div>
					<?php }?>
					
				</div>
				<div class="clear"></div>
			</div>
		</div>
		
		
		<?php $this->load->view("common/footer");?>		
		
		<p class="center">Page rendered in {elapsed_time} seconds</p>
	</div>
	
<?php $this->load->view("common/page_footer");?>
